<?php

use Illuminate\Database\Seeder;

class Collect_Seeder extends Seeder
{
   /**
     * @author mais <[<380354618@qq.com>]>
     * 收藏表 collect
     * 随机填充数据
     * @return void
     */
    public function run()
    {
    	for ($i=1; $i < 100; $i++) { 
	        DB::table('collect')->insert([
	            'uid' => mt_rand(1,20),
	            'gid' => mt_rand(1,20),
	            'state' => $i%4,
	            'created_at' => date('y-m-d h:i:s',time()),
	            'updated_at' => date('y-m-d h:i:s',time()),
	        ]);
	    }
    }
}
